import request from '@/utils/request'

export function listgoodInv(query) {
  return request({
    url: '/material/goodInv/list',
    method: 'get',
    params: query
  })
}

export function creategoodInv(data) {
  return request({
    url: '/material/goodInv/create',
    method: 'post',
    data
  })
}

export function readgoodInv(data) {
  return request({
    url: '/material/goodInv/get/' + data.id,
    method: 'get'
  })
}

export function updategoodInv(data) {
  return request({
    url: '/material/goodInv/update',
    method: 'post',
    data
  })
}

export function deletegoodInv(data) {
  return request({
    url: '/material/goodInv/delete/' + data.id,
    method: 'delete'
  })
}

export function listDetail(query) {
  return request({
    url: '/material/goodInv/docalgoodinvdtl',
    method: 'get',
    params: query
  })
}
